Skip to main content

rawKeyDown

Type

message

Summary

Sent when the user presses any key.

Syntax

rawKeyDown pKeyCode

Description

Handle the rawKeyDown message if you want to intercept raw events from the keyboard, or from a mouse wheel, or if you want to handle keys that aren't mapped to any character.

If the rawKeyDown handler does not pass the message or send it to a further object in the message path, the keypress has no effect. Passing the message allows the keypress to have its normal effect.

A rawKeyDown message is also sent when the user moves the mouse wheel on a scrolling mouse; in this case, the message is sent to the control under the mouse pointer.

Parameters

NameTypeDescription

pKeyCode

Number

The raw keycode of the pressed key.